package com.da.javatest.interview.other.cglib;

/**
 * @author chenlida
 * @date 2020/4/5 14:31
 * @description
 */
public class CglibTest {
    public int numAddTen(int num) {
        return num + 10;
    }

    public static void main(String[] args) {
        CglibTest proxyInstance = (CglibTest)new CglibProxyFactory().createProxyInstance(new CglibTest());
        System.out.println(proxyInstance.numAddTen(20));
    }
}
